var express = require('express');
var router = express.Router();
const UserController = require('../controller/UserController');
const {verifyUserToken} = require('../middleware/verifyToken');

/* 用户注册 */
router.post('/users/register', UserController.userRegister);

// 用户登录
router.post('/users/login', UserController.userLogin);

// 用户信息
router.post('/users/profile', verifyUserToken, UserController.userProfile);

// 用户退出登录
router.post('/users/logout', UserController.userLogOut);

module.exports = router;
